﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace RBAC.Administry.Control
{
    public partial class ActionReport : System.Web.UI.UserControl
    {
        public void ReportSuccess()
        {
            MultiView1.SetActiveView(success);
        }

        public void ReportFailure()
        {
            failureMessage.Text = string.Empty;
            MultiView1.SetActiveView(failure);
        }

        public void ReportFailure(string message)
        {
            failureMessage.Text = message;
            MultiView1.SetActiveView(failure);
        }

        public void Alert(string message)
        {
            alertLiteral.Text = string.Format(
                "<script type='text/javascript'>alert('{0}');</script>",
                message);
        }
    }
}